<template>
    <div>
        
    </div>
</template>

<script>
export default {
    setup(){
        //promise对象中存放需要进行异步执行的代码
        return new Promise((resolve)=>{
            setTimeout(()=>{
                resolve({
                    msg:"hello"
                })
            },3000);
        })
    }
}
</script>